package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author hantianzun
 * @since 2022/11/22 12:10
 */
@Mapper
public interface OrderSettingDao {

    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(Map map);

    Integer findReservations(Date orderDate);

    //查询可预约人数
    Integer findNumberByOrderDate(Date orderDate);
    //修改已预约人数
    void updateReservations(Date orderDate, Integer reservations);

}